RSS International Conference 2023
05:00
Colour palettes
Base R helper functions
{ggplot2} helper functions
Installing from GitHub:
remotes::install_github("nrennie/RSSthemes")
Load package:
library(RSSthemes)
barplot( height = table(mtcars$gear), col = factor( unique(mtcars$gear) ) )
set_rss_palette("signif_qual") barplot( height = table(mtcars$gear), col = factor( unique(mtcars$gear) ) )
install.packages("ggplot2")
library(ggplot2) g <- ggplot(data = mtcars) + geom_bar( mapping = aes( x = cyl, fill = factor(vs) ) ) g
g + scale_fill_rss_d("signif_qual")
g + scale_fill_rss_d("signif_qual") + theme_significance()
brtarran/rssdatavisguide